public function thousands(value:String):String{	var pattern:RegExp = /(\d+)(\d{3}(\.|,|$))/gi;	var str:String = value;		while (str.match(pattern).length != 0)	{		str = (str.replace(pattern, "$1.$2"));		}		return str;}